package com.emep.changzhi.analyse.repository.datamonitor.minute;

import com.emep.changzhi.analyse.entity.datamonitor.minute.DataMinuteUnorganizedIndustry;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author yangj
 * @version V1.0
 * @Description: DOTO
 * @date 2018/2/27  14:19
 */
public interface DataMinuteUnorganizedRepository extends CrudRepository<DataMinuteUnorganizedIndustry , Long> {

    @Query("select * from data_minute_unorganized_industry limit :pageSize")
    List<DataMinuteUnorganizedIndustry> dataMinuteUnorganizedHome(@Param("pageSize") Integer pageSize);
    @Query("select * from data_minute_unorganized_industry where token(id)>token(:id) limit :pageSize")
    List<DataMinuteUnorganizedIndustry> dataMinuteUnorganizedFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);

}
